#include "timer.h"

    timer::timer(int rate)
    {
        prevtime = 0;
        framerate = rate;
    }

    bool timer::checkTime()
    {
        if((prevtime + framerate) > SDL_GetTicks())
        {return false;}
        else
        {
            prevtime = SDL_GetTicks();
            return true;
        }
    }
